export * from './card';

// import { isDev } from '/@/config';
import { request } from './request';

const isDev = false

// const Authorization = useStorage('my-student-Authorization', { expire: 0, refreshExpire: 0, refreshToken: '', token: '' })

export async function service(req: { path: string; method: string; data?: object; params?: object }) {
  const { path, method, data, params } = req
  return request({
    url: `${isDev ? '/dev' : ''}${path}`,
    // headers: { token: Authorization?.value.token },
    data,
    params,
    method
  })
}
